#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
void fun(char x[]);


int main()
{
	char arr[80] = { '0' };
	printf("Please input string:\n");
	gets(arr);
	fun(arr);
	printf("反转后的字符串为：\n%s\n", arr);
}
void fun(char x[])
{
	int i = 0;
	int t = 0;
	int sz = strlen(x) ;//字符个数
	for (i = 0; i < sz/2; i++)
	{
		t = x[i];
		x[i] = x[sz - i - 1];
		x[sz - i - 1] = t;
	}
}